﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jarvis.Server.Providers;
using ManagedWifi;
using Ninject.Modules;

namespace Jarvis.Server.IoC
{
    class JarvisModule : NinjectModule
    {
        #region Overrides of NinjectModule

        /// <summary>
        /// Loads the module into the kernel.
        /// </summary>
        public override void Load()
        {
            Bind<IManagedWifiContext>().To<ManagedWifiContext>().WithConstructorArgument("requiredClientVersion",
                                                                                         ManagedWifiContext.NWlanVersion
                                                                                             .WindowsXP);
            Bind<ILocationProvider>().To<LocationProvider>();
            Bind<ISensorDatasProvider>().To<WlanSensorDatasProvider>();
            Bind<IStatsProvider>().To<StatsProvider>();

        }

        #endregion
    }
}
